package com.smedi.ismedi.constructionproject.core.infrastructure.enumerate;

public enum ProjectTypeEnum {
    S("S","特级"),
    A("A","甲类"),
    B("B","乙类"),
    C("C","丙类"),
    D("D","丁类");

    private String name;

    private String value;

    ProjectTypeEnum(String value, String name) {
        this.name = name;
        this.value = value;
    }

    public static String getName(String value) {
        for (ProjectTypeEnum c : ProjectTypeEnum.values()) {
            if (c.getValue().equals(value)) {
                return c.name;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}
